Routines (alphabetical) > Routines: H > HDF Routines > HDF_EXISTS

HDF_EXISTS

The HDF_EXISTS function returns True if the HDF scientific data format library is supported on the current IDL platform.

This routine is written in the IDL language. Its source code can be found in the file hdf_exists.pro in the lib subdirectory of the IDL distribution.

Syntax

Result = HDF_EXISTS( )

Return Value

Returns a 1 (True) if the library is supported or a 0 (False) if the library is not supported.

Arguments

None

Keywords

None

Examples

The following IDL command prints an error message if the HDF library is not available:

IF HDF_EXISTS() EQ 0 THEN PRINT, 'HDF not supported.'

Version History

 

4.0

Introduced